package org.linlinjava.litemall.db.models;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Getter
@Setter
@ToString
@EqualsAndHashCode(callSuper = false)
@TableName(value = "t_after_sale", autoResultMap = true)
public class AfterSale extends BaseModel{

    @TableField("after_sale_sn")
    private String afterSaleSn;

    @TableField("order_id")
    private Long orderId;

    @TableField("user_id")
    private Long userId;

    @TableField("type")
    private Short type;

    @TableField("reason")
    private String reason;

    @TableField("amount")
    private BigDecimal amount;

    @TableField(value = "pictures", typeHandler = JacksonTypeHandler.class)
    private String[] pictures;

    @TableField("comment")
    private String comment;

    @TableField("status")
    private Short status;

    @TableField("handle_time")
    private LocalDateTime handleTime;

}